package cn.qingyun.gis.modules.init.system.controller;


import cn.qingyun.gis.common.Result;
import cn.qingyun.gis.modules.init.system.request.RoleBindSteteRequest;
import cn.qingyun.gis.modules.init.system.service.ISysRoleStateService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 角色绑定流程状态 前端控制器
 * </p>
 *
 * @author author
 * @since 2023-06-08
 */
@RestController
@RequestMapping("/admin/sys/role-state")
public class SysRoleStateController {
    @Resource
    private ISysRoleStateService iSysRoleStateService;

    @PostMapping("/bind")
    public Result<?> bindState(@RequestBody RoleBindSteteRequest roleBindSteteRequest) {

        iSysRoleStateService.bind(roleBindSteteRequest);
        return Result.ok();
    }

}
